//
//  AppDelegate.m
//  CCLoveBee
//
//  Created by 陈科 on 2017/2/18.
//  Copyright © 2017年 CK. All rights reserved.
//

#import "AppDelegate.h"
#import "CCTabbarViewController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    
    // 1. 实例化window
    _window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    _window.backgroundColor = [UIColor whiteColor];
    
    // 2. 实例化根控制器
    UITabBarController *tabBar = [[CCTabbarViewController alloc] init];
    
    
    // 3. 设置window的根控制器
    _window.rootViewController = tabBar;
    
    // 4. 让window成为主窗口并可见
    // window 默认hiden = YES
    [_window makeKeyAndVisible];
    
    return YES;
}



@end
